package com.landian.commons.jpa.update;

import com.querydsl.core.types.Path;
import lombok.Getter;

/**
 * UpdateUnit
 *
 * @author caojl
 * @create 2017/11/30
 **/
public class UpdateUnit {

    private UpdateUnit(Path path, Object value){
        this.path = path;
        this.value = value;
    }

    /**
     *
     */
    @Getter
    private Path<?> path;

    /**
     *
     */
    @Getter
    private Object value;

    /**
     *
     * @return
     */
    public static UpdateUnit newInstance(Path path, Object value){
        return new UpdateUnit(path,value);
    }
}
